import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './styles/index.scss'
import 'virtual:svg-icons-register'
/*————————————————————————————————————————————————————————————*/
const app = createApp(App)
/*————————————————————————————————————————————————————————————*/
import SvgIconG from '@/components/SvgIconG/index.vue'
import Icon from '@/components/Icon/index.vue'
import Button from '@/components/Button/index.vue'
import Countdown from '@/components/Countdown/index.vue'
import LcHeader from './components/LeetcodeHeader/index.vue'
import MenuH from '@/components/MenuH/index.vue'
import Input from '@/components/Input/index.vue'

const componentsArr = [
    SvgIconG,
    Icon,
    Button,
    Countdown,
    LcHeader,
    MenuH,
    Input
]

/*————————————————————————————————————————————————————————————*/
componentsArr.forEach((component) => {
    app.component(component.name as string, component)
})
app.use(router)
app.mount('#app')
